--- CS-006-09
---
--- CREATE TABLE: "T028"
---
CREATE TABLE [T028]
(
	[T011Entity] int NOT NULL,
	[T028DiasCredito] int NOT NULL
)
GO

---
--- CREATE INDEX: Relation_1
---
CREATE INDEX [Relation_1] ON [T028]
(
	[T011Entity]
)
GO

---
--- CREATE FOREIGN KEY CONSTRAINT: Relation_1
---
ALTER TABLE [T028] ADD 
	FOREIGN KEY ([T011Entity])
		REFERENCES [dbo].[T011]([T011Entity])
		ON DELETE CASCADE
		ON UPDATE CASCADE
GO

DECLARE @T027IdScript as varchar(80)
DECLARE @T027Descripcion as varchar(360)
SET @T027IdScript='CS-006-09'
SET @T027Descripcion='Se agrega Tabla T028 para guardar los dias de credito del Proveedor'
INSERT INTO T027(T027IdScript,T027Descripcion,T027FechaRealizado) VALUES (@T027IdScript,@T027Descripcion,getdate())